preparation of catalyst: using liquefied paraffin as pore-forming agent and benzoyl peroxide as initiator, styrene-divinylbenzene macroporous copolymer pellets are prepared according to conventional methods, and then sulfonated with concentrated sulfuric acid at 80 ℃ to make macroporous ion exchange resin with sulfonic acid group, and then ion exchange with 0.2mol/L nickel nitrate solution to make the quartz tube of Ni-type resin into a carbonization-reduction device and introduce nitrogen, and, heat preservation for 1h, heat raising at 700 ℃ for 1.5h, water vapor by 0.5h, natural cooling to 400 ℃ for hydrogen and constant temperature for 2.5h, slow heating to 900 ℃ for heat preservation for 1.5h, then nitrogen, heat raising to 1050 ℃, constant temperature for 10h, cooling to room temperature, sieving to obtain Ni-type carbonized resin catalyst.